import MyLoadingComponent from 'components/loadingComponent/loadingComponent'
import Loadable from 'react-loadable'

const asyncShare = Loadable({
  loader: () => import('./Share'),
  loading: MyLoadingComponent,
})

const asyncpreview = Loadable({
  loader: () => import('./preview'),
  loading: MyLoadingComponent,
})

// component: Share,
const goodModule: Module = {
  name: 'good',
  routes: [
    {
      name: '商品分享',
      path: '/good/share/:kid',
      component: asyncShare,
    },
    {
      name: '商品预览',
      path: '/good/preview/:kid',
      component: asyncpreview,
    }
  ],
}
export default goodModule
